<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>

<jsp:include page="/static/common/common_header.jsp"/>

<script type="text/javascript" src="/static/js/customer/cust_potential_plan.js"></script>
<html>
<head>
    <title>潜在客户开发界面</title>
</head>
<body>
<table id="customer_datagrid"></table>





<div id="customer_toolbar">
    <a class="easyui-linkbutton" iconCls="icon-add" plain="true"  data-cmd="add">新增计划</a>
    <a id="edit_btn" class="easyui-linkbutton" iconCls="icon-edit" plain="true"   data-cmd="edit">修改计划</a>
    <a class="easyui-linkbutton" iconCls="icon-remove" plain="true" data-cmd="remove">删除计划</a>
    <a class="easyui-linkbutton" iconCls="icon-remark" plain="true"  data-cmd="remark">标记结果</a>

    <br>

    计划日期:
    <input name="beginDate" type= "text" class= "easyui-datebox" style="width: 110px"> </input>
    ~
    <input name="endDate" type= "text" class= "easyui-datebox" style="width: 110px"> </input>


    &nbsp;&nbsp;&nbsp;
    模糊搜索:

    <input name="inputUser" class="easyui-textbox" data-options="prompt:'创建人'" style="width:70px">
    <input name="subject" class="easyui-textbox" data-options="prompt:'主题'" style="width:140px">
    <input name="customer" class="easyui-textbox" data-options="prompt:'客户姓名'" style="width:140px">
    &nbsp;&nbsp;
    实施方式:
    <input name="type" class="easyui-combobox" style="width:140px"
           data-options="panelHeight:'auto',valueField:'name',textField:'name',url:'/dictionary/selectDetailsByDicId?id=5'"/>

    <a class="easyui-linkbutton" data-options="iconCls:'icon-search'" onclick="mysearch()">搜索</a>
    <a class="easyui-linkbutton" iconCls="icon-reload"   data-cmd="reload">刷新</a>


</div>

<div id="customer_dialog">
    <form id="customer_form" method="post">
        <input type="hidden" name="id">
        <table align="center" style="margin-top: 15px" >
            <th colspan="3">客户开发计划</th>
            <tr></tr>
            <tr></tr>
            <tr>
                <td width="32"></td>
                <td>
                    <input type="hidden" name="customer.id"/>
                    &nbsp;&nbsp;
                    客户:
                    <%--姓名不需要提交--%>
                    <input id="customerName" class="easyui-textbox" readonly="true" width="110"/>
                </td>
                <td>
                    &nbsp;&nbsp;
                    <a class="easyui-linkbutton" data-options="iconCls:'icon-search'"
                       data-cmd="cust_btn">查询客户</a>
                </td>
            </tr>
            <tr>
                <td width="32"></td>
                <td>计划时间:<input class="easyui-datebox" name="date" width="110"/></td>
                <td>计划主题:<input class="easyui-textbox" name="subject" width="110"/></td>
            </tr>
            <tr>
                <td width="32"></td>
                <td>
                    &nbsp;&nbsp;实施方式:
                    <input class="easyui-combobox" name="type.name"
                           data-options="panelHeight:'auto',valueField:'name',textField:'name',url:'/dictionary/selectDetailsByDicId?id=5'" />                </td>
                <td>&nbsp;&nbsp;备注:
                    <input class="easyui-textbox" name="remark"/></td>
            </tr>
            <tr>
                <td width="32"></td>
                <td colspan="2" style="text-align: center">计划详情:</td>
            </tr>
            <tr>
                <td width="32"></td>

                <td colspan="2">
                    <input class="easyui-textbox" name="detail" data-options="multiline:true,fit:true,prompt:'详情...'">
                </td>
            </tr>
        </table>
    </form>
</div>
<div id="customer_btns" style="text-align: center">
    <a class="easyui-linkbutton" iconCls="icon-save" plain="true"   data-cmd="save">保存</a>
    <a class="easyui-linkbutton" iconCls="icon-cancel" plain="true"   data-cmd="cancel">取消</a>
</div>
<div id="cust_dialog">
    <table id="cust_datagrid">
    </table>
</div>
<div id="get_btns" style="text-align: center">
    <a class="easyui-linkbutton" iconCls="icon-ok" plain="true"   data-cmd="get_cust">保存</a>
    <a class="easyui-linkbutton" iconCls="icon-cancel" plain="true"   data-cmd="cancel">取消</a>

</div>

<div id="mark_dialog">
    <form id="mark_form" method="post">
        <input name="id" type="hidden">
        <table align="center" style="margin-top: 15px">
            <th colspan="2">计划执行效果</th>
            <tr>
                <td width="50"></td>
                <td>计划编号:<span id="sn"></span></td>
            </tr>
            <tr>
                <td width="50"></td>
                <td>计划主题:<span id="subject"></span></td>
            </tr>
            <tr>
                <td width="50"></td>
                <td>
                    执行效果:
                    <select class="easyui-combobox" name="result" style="width: 80px" data-options="panelHeight:'auto'" >
                        <option value="3">优</option>
                        <option value="2">中</option>
                        <option value="1">差</option>
                    </select>
                </td>

            </tr>

        </table>
    </form>
</div>
<div id="mark_btns">
    <a class="easyui-linkbutton" iconCls="icon-ok" plain="true"   data-cmd="result">确定</a>
    <a class="easyui-linkbutton" iconCls="icon-cancel" plain="true"   data-cmd="cancel">取消</a>
</div>
</body>
</html>
